package com.example.myspringtest.alan;

import com.example.myspringtest.entity.ActConfig;
import com.example.myspringtest.handler.ReloadActHandler;
import com.example.myspringtest.service.ActLiveHandler;
import com.example.myspringtest.service.ActRankHandler;
import com.example.myspringtest.service.ActSendGiftHandler;
import com.example.myspringtest.service.ActTaskHandler;
import com.example.myspringtest.service.base.BaseFullHandler;
import com.example.myspringtest.utils.CglibFactory;
import com.example.myspringtest.utils.ContextUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.support.RootBeanDefinition;
import org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * 活动注册配置类
 */
@RestController
@RequestMapping("test")
public class ReloadActController {

    private static final Log logger = LogFactory.getLog(ReloadActController.class);

    @Autowired
    private ReloadActHandler reloadActHandler;

    @GetMapping("reLoad")
    public Boolean reLoad() {

        reloadActHandler.load(true);
        return true;

    }

}
